package com.cz.design.structure.bridge;

public class MainTest {

    public static void main(String[] args) {

        IPhone iPhone = new IPhone();
        iPhone.setSale(new OfflineSale("线下渠道", 9999));
        //iPhone.setSale(new OnlineSale("线上渠道", 9999));
        System.out.println(iPhone.getPhone());

    }

}
